from dashscope.api_entities.dashscope_response import Role
from django.shortcuts import render

# Create your views here.

from rest_framework.viewsets import ModelViewSet

from user_info.models import Roles, UrlAddress, UserRoles
from user_info.serializers import RolesSerializer, UrlAddressSerializer, UserRolesSerializer


class RolesView(ModelViewSet):
    queryset = Roles.objects.all()
    serializer_class = RolesSerializer


class UrlAddressView(ModelViewSet):
    queryset = UrlAddress.objects.all()
    serializer_class = UrlAddressSerializer


class UserRolesView(ModelViewSet):
    queryset = UserRoles.objects.all()
    serializer_class = UserRolesSerializer
